﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="actionBox.ascx.cs" Inherits="VISS.Web.Frontend.Modules.User.Profile.ActionBoxControl" %>
<%@ Import Namespace="VISS.Web.Frontend" %>
<%@ Import Namespace="NCT.Framework" %>
<%@ Import Namespace="VISS.API.Users" %>
<% if (!IsPersonal)
   { %>
<div id="action-box">
    <div class="content">
        <div class="main">
            <div class="row">
                <% if (CanDoAction)
                   { %>
                <a href="/profile/album?u=<%=UserKey %>"><span class="item view-image">Hình ảnh (<%=ImageCount %>)</span></a>
                <% }
                   else
                   { %>
                <a href="javascript:void(0);" onclick="jAlert(VarifiedAccountRequired);"><span class="item view-image">
                    Hình ảnh (<%=ImageCount %>)</span></a>
                <% } %>
            </div>
            <div class="row">
                <span class="item send-message" onclick="SendMessagePopup('<%=UserKey %>');">Gửi tin
                    nhắn</span>
            </div>
            <div class="row">
                <span class="item add-follow" onclick="AddFollow('<%=UserKey %>');">Quan tâm</span>
            </div>
            <div class="row">
                <span class="item report-user" onclick="SendReportPopup('<%=UserKey %>');">Báo vi phạm</span>
            </div>
             <div class="row">
                    <span title="Tặng quà cho <%= UserName %>" class="item sendgif-user" onclick="window.parent.location = '<%=AppSettings.RootURL %>gifstore?u=<%=UserKey %>';">Tặng quà</span>
             </div>
            <%
                if (totalDays < 2)
                {%>
            <div class="row">
                <div class="btn-online" onclick="javascript:chatWith('<%=UserKey %>')"></div>
            </div>
            <% }          
       
            %>
        </div>
        <div class="border-right">
            <div class="top">
            </div>
            <div class="bottom">
            </div>
        </div>
    </div>
    <div class="border-bottom">
        <div class="left">
        </div>
        <div class="right">
        </div>
    </div>
</div>
<% if (CanDoAction)
   { %>
<input type="hidden" id="CanDoAction" value="true" />
<% }
   else
   { %>
<input type="hidden" id="CanDoAction" value="false" />
<% } %>
<% } %>